<style>
  th,td{ padding:10px; border:1px solid rgb(206, 206, 206); }
</style>
<div style="padding:20px;">
  <table class="table" cellpadding="0" cellspacing="0">
    <tr style="padding-bottom:20px; border:1px solid #EAEAEA; background:#EFEFEF">
      <th style="width:150px;"><label class="add-f-label">退货类型：</label></th>
      <td>
        {$refund_type_list = refund_config::$refund_type_list}
        <select class="add-f-slt1 js_refundType">
          <option value="0">请选择退货类型</option>
          {foreach $refund_type_list as $k=>$v}
          <option value="{$k}" {if $k == $refund_info.refund_type}selected{/if}>{$v}</option>
          {/foreach}
        </select>
      </td>
    </tr>
    <input style="width:200px;" data-value="{$order_info.invoice_type}" value="{$order_info.invoice_type}" type="hidden" class="add-f-ipt1 js_invoiceType">
    <tr style="padding-bottom:20px; border:1px solid #EAEAEA; background:#EFEFEF">
      <th style="width:150px;"><label class="add-f-label">发票编号：</label></th>
      <td>
        <input style="width:200px;" data-value="{$order_info.invoice_no}" value="{$order_info.invoice_no}" type="text" class="add-f-ipt1 js_invoiceNo">
      </td>
    </tr>
    <tr style="padding-bottom:20px; border:1px solid #EAEAEA; background:#EFEFEF">
      <th style="width:150px;"><label class="add-f-label">发票代码：</label></th>
      <td>
        <input style="width:200px;" data-value="{$order_info.invoice_code}" value="{$order_info.invoice_code}" type="text" class="add-f-ipt1 js_invoiceCode">
      </td>
    </tr>
    <tr style="padding-top:20px;">
      <table class="table" cellpadding="0" cellspacing="0" border="1">
        <tr>
          <th width="400px">产品信息</th>
          <th>SN编码</th>
        </tr>
        {foreach $refund_info.detail as $k=>$v}
        {$order_relation_info = _uri('order_relation', $v.order_relation_id)}
        {$sn = explode(',', $order_relation_info.sn_code)}
        <tr>
          <td>
            <img src="{_image($v.goods_cover, 'small')}" width="50px">
            {$v.goods_title}--(物料编号：{_uri('sku_snapshot', $order_relation_info['sku_snapshot_id'], 'sku_code')})
          </td>
          <td data-order_relation_id="{$v.order_relation_id}" class="js_orderRelationId">
            {if $order_relation_info.sn_code}
            {foreach $sn as $sn_v}
            <input style="width:120px;" value="{$sn_v}" type="text" class="add-f-ipt1 js_snCode">
            {/foreach}
            {else}
            {for $sn = 1 to $v.refund_num}
            <input style="width:120px;" value="" type="text" class="add-f-ipt1 js_snCode">
            {/for}
            {/if}
          </td>
        </tr>
        {/foreach}
      </table>
    </tr>
  </table>
</div>